GBML manual / Constants

TILE_LOW_COVER

Blocks a body; a projectile passes over - duckable cover.

Syntax

TILE_LOW_COVER: constant

Description

The tile class that blocks a body but lets a projectile pass over - duckable cover. tile_solid reports true for it (it stops a walker); tile_blocks_projectile reports false (a bullet sails straight over).

Example

if (tile_class(x, y) == TILE_LOW_COVER) {
    depth = -y - 1; // draw the walker just in front of the cover it's crouched behind
}

Only a TILE_LOW_COVER tile gets this treatment - TILE_SOLID would answer tile_solid/tile_blocks_projectile differently (it also blocks a projectile), so it's tile_class that tells TILE_LOW_COVER apart here, not either of those two.

See also: tile_classTILE_SOLIDtile_blocks_projectile